{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "33af6785",
   "metadata": {},
   "source": [
    "### 上周学习内容\n",
    "* python的第一行代码\n",
    "* 观察标准库"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "2b5c9e73",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not an odd minute.\n"
     ]
    }
   ],
   "source": [
    "# if else条件判断\n",
    "from datetime import datetime\n",
    "odds = [ 1,3,5,7,9,11,13,15,17,19,\n",
    "        21,23,25,27,29,31,33,35,37,39,\n",
    "        41,43,45,47,49,51,53,55,57,59]\n",
    "\n",
    "right_this_minute = datetime.today().minute\n",
    "\n",
    "if right_this_minute in odds:\n",
    "    print(\"This minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"Not an odd minute.\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "3cba8790",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "9"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "datetime.today().minute"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "3419e7a5",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "xizeng xiaoli\n",
      "xiaoli xiaoli\n"
     ]
    }
   ],
   "source": [
    "name = \"xizeng\"\n",
    "name2 = \"xiaoli\"\n",
    "print(name,name2)\n",
    "\n",
    "name = \"xiaoli\"\n",
    "print(name,name2)\n",
    "\n",
    "#%"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "18b22ee9",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
